import request from '@/sheep/request';

export default {
	// 竞猜列表
	eventsguess: () =>
		request({
			url: 'user.user/eventsguess',
			method: 'GET'
		}),
	// 跑步活动
	runninglist: () =>
		request({
			url: 'user.user/runninglist',
			method: 'GET'
		}),
	// 获取队伍列表
	teamslist: (id) =>
		request({
			url: 'user.user/teamslist',
			method: 'GET',
			params: {
				id: id
			}
		}),
	// 提交选择队伍
	eventsguessuser: (data) =>
		request({
			url: 'user.user/eventsguessuser',
			method: 'GET',
			params: {
				userid: data.userid,
				eventid: data.eventid,
				teamid: data.teamid,
				guessid: data.guessid
			}
		}),
	// 获取队伍列表
	laxinlist: () =>
		request({
			url: 'user.user/laxinlist',
			method: 'GET'
		}),
		
		sharedetail: (eventid,shareuserid) =>
			request({
				url: 'user.user/sharedetail',
				method: 'GET',
				params: {
					eventid: eventid,
					shareuserid:shareuserid
				}
			}),
			addinvitelog: (shareuserid,shareeventid) =>
				request({
					url: 'user.user/addinvitelog',
					method: 'GET',
					params: {
						shareuserid: shareuserid,
						shareeventid:shareeventid
					}
				}),
				updateinvitelog: (eventid) =>
					request({
						url: 'user.user/updateinvitelog',
						method: 'GET',
						params: {
							eventid:eventid
						}
					}),
					clickcheckin: (checkinid) =>
						request({
							url: 'user.user/clickcheckin',
							method: 'GET',
							params: {
								checkinid:checkinid
							}
						}),
						checkindetail: (checkinid) =>
							request({
								url: 'user.user/checkindetail',
								method: 'GET',
								params: {
									checkinid:checkinid
								}
							}),
}